<?php defined('SYSPATH') or die('No direct script access.');?>
<?php $index = 0; ?>
<div class="center_title_bar">Orders</div>
<?php foreach($order->order_items->find_all() as $order_item): ?>
	<?php $inventory_item = $order_item->inventory_item; ?>
	<?php $item = $inventory_item->item; ?>
	<?php echo $item->name; ?>
	<div class="ord_box">
		<div class="center_ord_box">
			<div class="ord_title"><?php echo HTML::anchor('item/item/sitem/'.$item->id, $item->name); ?></div>
			<div class="item_table">
				<table border="0">
				<tr>
					<th>Price</th>
					<th>Quantity</th>
					<th>Total</th>
				</tr>
				<tr>
					<td><?php echo $item->price; ?></td>
					<td><?php echo $order_item->quantity;?> </td>
					<td><?php echo '$'.$item->price*$order_item->quantity;?></td>
				</tr>
				</table>
			</div>
		</div>
	</div>
<?php endforeach; ?>
      